package com.recource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author yujie
 * @createTime 2023/5/6 13:43
 * @description
 */
@Data
@TableName("t_active")
public class Huodongxinxi {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    @TableField(value = "address")
    private String address;

    @TableField(value = "content")
    private String content;

    @TableField(value = "uid")
    private Integer uid;

    @TableField(exist = false)
    private Users user;

    @TableField(value = "tid")
    private Integer tid;

    @TableField(exist = false)
    private Huodongleixin type;

    @TableField(exist = false)
    private String comment;


}
